/// Copyright (c) Microsoft Corporation.  All rights reserved.
using System;
using System.Runtime.InteropServices;

namespace BuddyBuildIntegrationWebService
{
    internal static class Utils
    {
        [DllImport("kernel32.dll", SetLastError = true)]
        static extern void OutputDebugStringA(string lpOutputString);

        public static void LogMessage(string message)
        {
            object[] arguments = new object[3];
            arguments[0] = DateTime.Now.ToLongDateString();
            arguments[1] = DateTime.Now.ToLongTimeString();
            arguments[2] = message;
            System.Diagnostics.Trace.WriteLine(
                string.Format("[{0} {1}]: {2}", arguments)
                );
            //OutputDebugStringA(message);
        }
    }
}
